package com.resou.reader.bookshelf;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.resou.reader.base.BasePresenter;
import com.resou.reader.base.BaseView;
import com.resou.reader.bookshelf.readhistory.datasupport.BookCollection;
import com.resou.reader.data.bookshelf.model.ScrollNotice;
import com.resou.reader.data.signin.model.SignStatus;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

import java.util.List;

public interface HomeBookShelfContract {
    interface HomeBookShelfView extends BaseView {

        /**
         * 显示书架列表数据
         *
         * @param list
         */
        void showContent(List<BookCollection> list);
        SmartRefreshLayout getSmartRefreshLayout();
        BaseQuickAdapter getAdapter();

        //删除书籍
        void deleteItem(String bookID);

        //获取viewContext
        Context getViewContext();

        //显示签到状态
        void showSignStatus(SignStatus data);

        //设置滚动公告栏
        void setScrollBoardInfo(List<ScrollNotice> boardInfo);

        //停止刷新
        void finishRefresh();

        //设置书封信息
        void setBookCover(BookCollection books);
    }

    interface HomeBoolShelfPresenter extends BasePresenter {

    }
}
